
package com.training.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.training.formbean.LoginForm;

public class LoginAction extends org.apache.struts.action.Action {

	public LoginAction() {
	}

	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {

		if (form instanceof LoginForm) {

			LoginForm loginForm = (LoginForm) form;

		    	loginForm.getUserId().trim();
			loginForm.getPassword().trim();

		}
		return null;

	}

}